﻿@model IEnumerable<TruckingApplication.Dal.EntityModels.PAYMENT>

<table id="tableMgmt" class="display" style="max-width:99%;">
    <thead>
        <tr>
            <th>Type</th>
            <th>Date</th>
            <th>Amount</th>
            <th>From</th>
            <th>For</th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model)
{
    <tr>
        <td>
            @item.paymentType
        </td>
        <td>
            @item.paymentDate.ToString("MM.dd.yy")
        </td>
        <td>
            @item.paymentAmount.ToString("C")
        </td>
        <td>
            @item.paymentFrom
        </td>
        <td>
            @item.paymentFor
        </td>
    </tr>
}
    </tbody>
    <tfoot>
        <tr>
            <th>Type</th>
            <th>Date</th>
            <th>Amount</th>
            <th>From</th>
            <th>For</th>
        </tr>
    </tfoot>
</table>
